import { handleMove } from '@/utils/index';
import { DirectiveBinding } from 'vue';

export function vMove(app: any) {
    // 用的时候v-move,淦
    app.directive('move', {
        mounted(el:HTMLElement, binding: DirectiveBinding) {
            console.log(el);
            handleMove(el, binding)
        },
        updated(el:HTMLElement, binding: DirectiveBinding) {
            console.log('el==', el);
            handleMove(el, binding)
        },
    })
}